﻿<%@ Page Title="Editar Socio" Language="C#" MasterPageFile="~/Juegos.master" AutoEventWireup="true"
    CodeBehind="EditarSocio.aspx.cs" Inherits="CityGames.EditarSocio" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="Controles/MyMessageBox.ascx" tagname="MyMessageBox" tagprefix="uc1" %>
<%@ Register Assembly="FUA" Namespace="Subgurim.Controles" TagPrefix="cc1" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="HeadContent">
    <link href="/Styles/Socio.css" rel="stylesheet" type="text/css" />
</asp:Content>

<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <div id="mainSocio">
        <h2>
            Editar Perfil
        </h2>

        <div id="labelSocio">
            <asp:Table ID="Table1" runat="server" Width="40%" CellPadding="10" CellSpacing="10">
                <asp:TableRow ID="TableRow1" runat="server">
                    <asp:TableCell ID="TableCell1" runat="server"><asp:Label runat="server" id="Label1" Font-Bold="true" Text="Nombre:"/></asp:TableCell><asp:TableCell ID="TableCell2" runat="server">
                        <asp:TextBox runat="server" id="tbNombre" ValidationGroup="EditarSocio"/>
                        <asp:RequiredFieldValidator ID="rfvNombre" runat="server" ControlToValidate="tbNombre" ValidationGroup="EditarSocio" ErrorMessage="   *" style="color: Red; font-family:Comic Sans MS; text-decoration:blink;"></asp:RequiredFieldValidator> 
                    </asp:TableCell></asp:TableRow><asp:TableRow ID="TableRow2" runat="server">
                    <asp:TableCell ID="TableCell3" runat="server"><asp:Label runat="server" id="Label2" Font-Bold="true" Text="Apellidos:"/></asp:TableCell><asp:TableCell ID="TableCell4" runat="server">
                        <asp:TextBox runat="server" id="tbApellidos" ValidationGroup="EditarSocio"/>
                        <asp:RequiredFieldValidator ID="rfvApellidos" runat="server" ControlToValidate="tbApellidos" ValidationGroup="EditarSocio" ErrorMessage="   *" style="color: Red; font-family:Comic Sans MS; text-decoration:blink;"></asp:RequiredFieldValidator> 
                    </asp:TableCell></asp:TableRow><asp:TableRow ID="TableRow3" runat="server">
                    <asp:TableCell ID="TableCell5" runat="server"><asp:Label runat="server" id="Label4" Font-Bold="true" Text="Nick:"/></asp:TableCell><asp:TableCell ID="TableCell6" runat="server">
                        <asp:TextBox runat="server" id="tbNick" ValidationGroup="EditarSocio"/> 
                        <asp:RequiredFieldValidator ID="rfvNick" runat="server" ControlToValidate="tbNick" ValidationGroup="EditarSocio" ErrorMessage="   *" style="color: Red; font-family:Comic Sans MS; text-decoration:blink;"></asp:RequiredFieldValidator>
                    </asp:TableCell></asp:TableRow><asp:TableRow ID="TableRow8" runat="server">
                    <asp:TableCell ID="TableCell15" runat="server"><asp:Label runat="server" id="Label7" Font-Bold="true" Text="E-mail:"/></asp:TableCell><asp:TableCell ID="TableCell16" runat="server">
                        <asp:TextBox runat="server" id="tbEmail" ValidationGroup="EditarSocio"/> 
                        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="tbEmail" ValidationGroup="EditarSocio" ErrorMessage="   *" style="color: Red; font-family:Comic Sans MS; text-decoration:blink;"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="tbEmail" ValidationGroup="EditarSocio" ErrorMessage="X" ValidationExpression="\S+@\S+\.\S+" style="color:Red;"></asp:RegularExpressionValidator>
                    </asp:TableCell></asp:TableRow><asp:TableRow ID="TableRow50" runat="server">
                    <asp:TableCell ID="TableCell50" runat="server"><asp:Label runat="server" id="Label9" Font-Bold="true" Text="Avatar:"/></asp:TableCell><asp:TableCell ID="TableCell51" runat="server">
                    <cc1:FileUploaderAJAX 
                            ID="fuaAvatar" runat="server" MaxFiles="1" Directory_CreateIfNotExists="true" 
                            Font-Bold="True" Font-Names="Comic Sans MS" text_Add="Cambiar" 
                            text_Delete="[Borrar]" text_Uploading="Cargando..."/>
                    </asp:TableCell></asp:TableRow><asp:TableRow ID="TableRow4" runat="server">
                    <asp:TableCell ID="TableCell7" runat="server"><asp:Label runat="server" id="Label6" Font-Bold="true" Text="Sexo:"/></asp:TableCell><asp:TableCell ID="TableCell8" runat="server">
                        <asp:RadioButtonList id="rbSexo" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem>Hombre</asp:ListItem>
                            <asp:ListItem>Mujer</asp:ListItem>
                        </asp:RadioButtonList>
                    </asp:TableCell></asp:TableRow><asp:TableRow ID="TableRow13" runat="server">
                    <asp:TableCell ID="TableCell25" runat="server"><asp:Label runat="server" id="Label13" Font-Bold="true" Text="Dirección:"/></asp:TableCell><asp:TableCell ID="TableCell26" runat="server">
                        <asp:TextBox runat="server" id="tbDireccion" ValidationGroup="EditarSocio"/> 
                        <asp:RequiredFieldValidator ID="rfvDieccion" runat="server" ControlToValidate="tbDireccion" ValidationGroup="EditarSocio" ErrorMessage="   *" style="color: Red; font-family:Comic Sans MS; text-decoration:blink;"></asp:RequiredFieldValidator>
                    </asp:TableCell></asp:TableRow><asp:TableRow ID="TableRow14" runat="server">
                    <asp:TableCell ID="TableCell27" runat="server"><asp:Label runat="server" id="Label14" Font-Bold="true" Text="CP:"/></asp:TableCell><asp:TableCell ID="TableCell28" runat="server">
                       <asp:TextBox runat="server" id="tbCp" ValidationGroup="EditarSocio"/> 
                       <asp:RequiredFieldValidator ID="rfvCp" runat="server" ControlToValidate="tbCp" ValidationGroup="EditarSocio" ErrorMessage="   *" style="color: Red; font-family:Comic Sans MS; text-decoration:blink;"></asp:RequiredFieldValidator>
                       <asp:RegularExpressionValidator ID="revCp" runat="server" ControlToValidate="tbCp" ValidationGroup="EditarSocio" ErrorMessage="X" ValidationExpression="\d{5}" style="color:Red;"></asp:RegularExpressionValidator>
                    </asp:TableCell></asp:TableRow><asp:TableRow ID="TableRow5" runat="server">
                    <asp:TableCell ID="TableCell9" runat="server"><asp:Label runat="server" id="Label8" Font-Bold="true" Text="Localidad:"/></asp:TableCell><asp:TableCell ID="TableCell10" runat="server">
                        <asp:TextBox runat="server" id="tbLocalidad" ValidationGroup="EditarSocio"/> 
                        <asp:RequiredFieldValidator ID="rfvLocalidad" runat="server" ControlToValidate="tbLocalidad" ValidationGroup="EditarSocio" ErrorMessage="   *" style="color: Red; font-family:Comic Sans MS; text-decoration:blink;"></asp:RequiredFieldValidator>
                    </asp:TableCell></asp:TableRow><asp:TableRow ID="TableRow6" runat="server">
                    <asp:TableCell ID="TableCell11" runat="server"><asp:Label runat="server" id="Label10" Font-Bold="true" Text="Provincia:"/></asp:TableCell><asp:TableCell ID="TableCell12" runat="server">
                        <asp:TextBox runat="server" id="tbProvincia" ValidationGroup="EditarSocio"/>  
                        <asp:RequiredFieldValidator ID="rfvProvincia" runat="server" ControlToValidate="tbProvincia" ValidationGroup="EditarSocio" ErrorMessage="   *" style="color: Red; font-family:Comic Sans MS; text-decoration:blink;"></asp:RequiredFieldValidator>
                    </asp:TableCell></asp:TableRow><asp:TableRow ID="TableRow15" runat="server">
                    <asp:TableCell ID="TableCell29" runat="server"><asp:Label runat="server" id="Label15" Font-Bold="true" Text="Teléfono:"/></asp:TableCell><asp:TableCell ID="TableCell30" runat="server">
                        <asp:TextBox runat="server" id="tbTelefono" ValidationGroup="EditarSocio"/>  
                        <asp:RequiredFieldValidator ID="rfvTelefono" runat="server" ControlToValidate="tbTelefono" ValidationGroup="EditarSocio" ErrorMessage="   *" style="color: Red; font-family:Comic Sans MS; text-decoration:blink;"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="revTelefono" runat="server" ControlToValidate="tbTelefono" ValidationGroup="EditarSocio" ErrorMessage="X" ValidationExpression="\d{9}" style="color:Red;"></asp:RegularExpressionValidator>
                    </asp:TableCell></asp:TableRow></asp:Table></div><div id="imgSocio" style="width: 10%; height: 10%;">
            <asp:Image runat="server" ImageUrl="/Avatares/user.png" style="height: 100%; width: 100%" id="imFoto" />
        </div>

        <div id="btForm" style="width: 10%; height: 10%; margin:0 auto 0 auto;">
            <asp:Button 
                runat="server" ID="btConfirmar" style="height: 100%; width: 95%; " 
                text="Modificar" onclick="btConfirmar_Click1"/><asp:ValidationSummary ID="vsEditarSocio" HeaderText="Datos faltantes" DisplayMode="BulletList" EnableClientScript="true" runat="server" ShowMessageBox="false" ShowSummary="false" ValidationGroup="EditarSocio"/>
        </div>

    </div>
</asp:Content>
